package com.faxsun.web.filter;

import java.util.HashMap;

import javax.annotation.Resource;
import javax.servlet.ServletRequest;

import org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPricingService;
import org.broadleafcommerce.core.web.catalog.AbstractDynamicSkuPricingFilter;
import org.springframework.stereotype.Component;

@Component("currencySkuPricingFilter")
public class DynamicSkuPricingFilter extends AbstractDynamicSkuPricingFilter {

	@Resource(name = "currencySkuPricingService")
	protected DynamicSkuPricingService skuPricingService;

	@Override
	public DynamicSkuPricingService getDynamicSkuPricingService(
			ServletRequest req) {
		return skuPricingService;
	}

	@SuppressWarnings({ "rawtypes", "unchecked" })
	@Override
	public HashMap getPricingConsiderations(ServletRequest request) {
		HashMap pricingConsiderations = new HashMap();

		pricingConsiderations.put("currency", "currency");

		return pricingConsiderations;
	}

}
